package ZhiPass;

public class Test {
    public static void main(String[] args) {
        int b=100;
        Demo2 demo2=new Demo2();
        System.out.println(demo2.a);//1
        demo2.change(b);//10
        System.out.println(demo2.a);//1
        System.out.println("main方法里的b的值"+b);//100
    }

}
class Demo2 {
    public int a=1;

    public void change(int b){
        b=10;
        System.out.println("change方法里a的值"+a);//10
    }
}